<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绑定布尔attribute</title>
</head>

<body>
    <h1>绑定布尔attribute</h1>
    <div style="color: gray;">
        app.isButtonDisabled = true
    </div>
    <div>
        <a href="/">回目录</a>
    </div>
    <hr>
    <div id="app">
        <button v-bind:disabled="isButtonDisabled">Button</button>
    </div>
    <script src="/node_modules/vue/dist/vue.js"></script>
    <script>
        var app = new Vue({
            el: "#app",
            data: {
                isButtonDisabled: false,
            }
        });
    </script>
</body>

</html>